dxp-ux

(0 reviews)

customerBillById(TMF678 GET) retriveCustomerBill By ID - V2

CASE 1 Unitary Test

This usecase is to retrieve bill history from evertec

URL
https://nonprod.esb.cloud.lla.com/dev/dxp-ux/dxp-ux/v2/PR/customerBill/1223334444
URI Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.
Expected one is "PR"-Puerto Rico
Y
idstringbill document unique identifierY
Query Param
nametypedescriptionrequired
billingAccount.idstringcustomer account idN
billDatestringbill date of the accountN
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request
Y
Request
curl --location 'https://nonprod.esb.cloud.lla.com/test/dxp-ux/dxp-ux/v2/PR/customerBill/252929057?billingAccount.id=821470133&billDate=2024-01-10' \
--header 'client_id: 7afe7ffbe27147bcb5308c92fd3d9488' \
--header 'client_secret: 875c5df1fC294C6Db584a670d0408019' \
--header 'X-Correlation-ID: 25-8412-9621-85415'
Response
200 OK
[
    {
        "billDate": "2024-01-10", //billDate
        "billDocument": [
            {
                "id": "252929057", //objectId
                "url": "https://evertec.com/pdf/url" //objectUrl
            }
        ],
        "billingAccount": {
            "id": "821470133" //billingAccount.id
        }
    }
]
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
billDatedatetimeBill dateN
billDocumentarrayArray object of bill documentN
billDocument.idstringbill document object unique identifierN
billDocument.urlstringurl of the bill downloadable bill documentN
billingAccountobjectbilling account objectN
billingAccount.idstringunique identifier of billingAccountN

Reviews